import Vue from 'vue'
import VueRouter from 'vue-router'
import CaseAnalysis from "@/views/CaseAnalysis.vue";
import DrugSearch from "@/views/DrugSearch.vue";
import SymptomSearch from "@/views/SymptomSearch.vue";
import PlaceSearch from "@/views/PlaceSearch.vue";


Vue.use(VueRouter)
const routes = [
    {path: '/',redirect: '/drug',},
    {path: '/drug', component: DrugSearch,},
    {path: '/case', component: CaseAnalysis,},
    {path: '/symptom', component: SymptomSearch,},
    {path: '/place', component: PlaceSearch,},
]

const router = new VueRouter({
    routes
})

export default router